import request from "../utils/request";

export function getBannerList() {
  return request({
    url: "/banner/list",
  });
}
//添加banner接口
export function addBanner(params) {
  return request({
    url: "/banner/add",
    method: "post",
    data: params,
  });
}

//删除banner接口
export function deleteBannerById(params) {
  return request({
    url: "/banner/delete",
    data: params,
  });
}

//清空banner接口
export function removeAllBanner(params) {
  return request({
    url: "/banner/removeAll",
    data: params,
  });
}
